<iframe th:replace="common/top.html" width="100%" frameborder="0" scrolling="yes" class="x-iframe"></iframe>

<div id="BackLink">
    <!--  <a th:href="productForm?productId=${sessionScope.product.productId}">-->
    <a th:href="@{productForm(productId=${item.product.productId})}" th:text=" 'Return to '+${item.product.productId}">
    </a>
</div>

<div id="Catalog">

    <table>
        <tr>
            <td rowspan="7" th:utext="${item.product.description}"></td>
            <xtd><b th:text="${item.itemId}"></b></xtd>
        </tr>
        <tr>

        </tr>
        <tr>
            <td>
                <b>
                    <font size="4" th:text="${item.attribute1}+${item.attribute2}+${item.attribute3}+
          ${item.attribute4}+${item.attribute5}+${item.product.name}"> </font>
                </b>
            </td>
        </tr>
        <tr>
            <td th:text="${item.product.name}"></td>
        </tr>
        <tr>
            <td th:if="${item.quantity<=0}" th:text="'Back ordered.'"></td>
            <td th:if="${item.quantity>0}" th:text="${item.quantity}+' in stock'"></td>
        </tr>

        <tr>
            <td th:with="num=${item.listPrice}" th:utext="${#numbers.formatCurrency(num)}">
            </td>
        </tr>

        <tr>
            <td>
                <!--        <a th:href="addItemToCart?workingItemId=${sessionScope.item.itemId}" class="Button">Add to Cart</a>-->
                <a th:href="@{cart(ItemId=${item.itemId})}" class="Button">Add to Cart</a>
            </td>
        </tr>
    </table>

</div>

<iframe th:replace="common/bottom.html" width="100%" frameborder="0" scrolling="yes" class="x-iframe"></iframe>




